<?php
	require_once("smarty/initSmarty.class.php");
	class WebPage extends InitSmarty
	{
		protected $skin;
		protected $title;
		public function __construct($skin)
		{
			parent::__construct();
			$this->title = "TEST";
			$this->skin = $skin;
		}
		
		public function display($page)
		{
			$this->assign("title", $this->title);
			parent::display($this->skin."/header.tpl");
			parent::display($this->skin."/".$page);
			parent::display($this->skin."/footer.tpl");
		}
	}
?>